import request from '@/utils/request'

export function login(data) {
    return request({
        url: '/sys/login',
        method: 'POST',
        data: data

    })
}

/**
 * 获取用户登录信息
 */
export function getUserInfo() {
    return request({
        url: '/sys/profile',
        method: 'POST'

    })

}

/**
 * 获取用户详细信息
 * @param {*} id  用户的id
 */
export function getUserDetailById(id) {
    return request({
        url: `/sys/user/${id}`,
        method: 'GET'
    })

}

export function logout() {


}


